package org.tuoren.official.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import org.tuoren.official.domain.TInnovationAchievementDetail;

/**
 * 研究成果列业务对象 t_innovation_achievement_detail
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TInnovationAchievementDetail.class, reverseConvertGenerate = false)
public class TInnovationAchievementDetailBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 成果名称
     */
    @NotBlank(message = "成果名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 成果图片
     */
    @NotBlank(message = "封面图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String coverUrl;

    /**
     * 成果图片
     */
    @NotBlank(message = "成果图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoUrl;

    /**
     * 成果介绍
     */
    private String achievementIntroduce;


    /**
     * 专利号
     */
    private String patentNo;

    /**
     * 发明人
     */
    private String inventor;

    /**
     * 工作单位
     */
    private String workUnit;

    /**
     * 应用科室
     */
    private String userDepartment;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 是否发布（0：否；1：是）
     */
    //@NotBlank(message = "是否发布不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isPublish;
}
